import { createBrowserRouter } from 'react-router-dom'
import Home from '../pages/Home/index'
import Login from '../pages/Login/index'
import Layout from '../pages/Layout/index'
import List from '../pages/List/index'
import Order from '../pages/Order/index'
import My from '../pages/My/index'
import Hcp from '../pages/Hcp/index'
const router = createBrowserRouter([
    {
        path: '/', element: <Layout />,
        children: [
            { path: '/', element: <Home /> },
            { path: '/list', element: <List /> },
            { path: '/order', element: <Order /> },
            { path: '/my', element: <My /> }
        ]
    }, {
        path: '/login', element: <Login />
    },{
        path: '/hcp', element: <Hcp />
    }
])
export default router